Airwallex\Gateways\ExpressCheckout D

Total Complexity 149
Dependencies 21
Dependents 5
Total lines 1,036
Lines of code 779
Logical lines of code 311
Comment lines 96
Methods 45
Properties 9

Methods 45

Method Rating Maintainability Complexity Lines of code
shouldShowExpressCheckoutButton()
B
47 17 35
displayExpressCheckoutButtonHtml()
A
42 10 60
process_payment()
A
39 8 62
isProductSupported()
A
54 10 20
getActiveCardSchemes()
A
47 8 36
init_form_fields()
S
35 2 104
hasSubscriptionProduct()
S
55 7 19
isCartItemsAllowed()
S
55 6 19
addOrderMeta()
S
58 6 14
getCheckoutDetail()
S
50 5 29
getExpressCheckoutScriptData()
S
44 4 44
isAuthenticationRequired()
S
65 5 9
getProduct()
S
60 4 13
process_refund()
S
51 3 26
do_subscription_payment()
S
52 3 23
getLoginConfirmationSettings()
S
58 3 16
getExpressCheckoutSettingsScriptData()
S
52 2 26
registerHooks()
S
52 2 22
__construct()
S
48 1 35
getPreOrderProductFromCart()
S
70 3 6
isPreOrderProductChargedUponRelease()
S
77 3 3
isAccountCreationPossible()
S
68 3 7
subscription_payment_information()
S
68 3 7
getMetaData()
S
66 3 8
isPageSupported()
S
73 3 5
generate_google_pay_instruction_html()
S
57 1 18
generate_apple_pay_instruction_html()
S
58 1 17
getSupportedProductTypes()
S
60 1 16
isProduct()
S
79 2 3
validate_payment_methods_field()
S
77 2 3
registrationEmailExistsError()
S
66 2 8
isCartOrCheckout()
S
79 2 3
isMethodEnabled()
S
76 2 3
enqueueAdminScripts()
S
65 1 11
shouldShowButtonOnPage()
S
79 1 3
isCardGatewayEnabled()
S
77 1 3
getButtonSize()
S
80 1 3
getButtonType()
S
80 1 3
getShowButtonOn()
S
80 1 3
is_capture_immediately()
S
78 1 3
generate_button_preview_html()
S
73 1 5
generate_alert_html()
S
67 1 9
loadAppleScript()
S
68 1 9
displayExpressCheckoutButtonSeparatorHtml()
S
75 1 5
getButtonTheme()
S
80 1 3